<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterAgentChannelAddOrderDisStatus extends Migrator
{
    public function up()
    {

        $this->table('agent_channel')
            ->addColumn('order_display_status', 'integer', ['limit' => 1, 'default' => 1, 'comment' => '订单入口显示状态 1 显示 2关闭'])
            ->update();

    }

    public function down()
    {

        $this->table('agent_channel')->removeColumn('order_display_status');

    }
}
